<template>
  <view class="main">
    <view class="btn-grp">
      <view class="btn-item">
        <button size="mini" @tap="toHome">首页</button>
      </view>
      <view class="btn-item">
        <button size="mini" @tap="toOrders">查看订单</button>
      </view>
    </view>
  </view>
</template>
<script setup lang="ts">
const toHome = () => {
  uni.switchTab({
    url: "/pages/index/index"
  })
}

const toOrders = () => {
  uni.navigateTo({
    url: "/pagesOrder/settings/order"
  })
}
</script>
<style lang="scss">
.main {
  .btn-grp {
    background-color: #fff;
    padding: 20px 0;
    display: flex;
    justify-content: space-around;
  }
}
</style>